package com.huwei.lngu.kk.elm.gu;

import java.util.Arrays;

public class ch01app {

    public static void main(String[] args) {
        System.out.println("Hello World");
        int[] ints = new int[10];
        int[] is= {7,9,6,2,5,1,0,3,8,4};
        int sum=0;
        for (int i : is) {
            sum+=i;
        }
        System.out.println(sum);
        int a = 0;
        for (int i=0;i<is.length-1;i++){
            for (int j=i+1;j<is.length;j++){
                if (is[i]>is[j]){
                   a=is[i];
                   is[i]=is[j];
                   is[j]=a;
                }
            }
        }
        System.out.println(Arrays.toString(is));

        int d=1;
        for (int i=0;i<is.length-1;i++){
            int m=is[i];
            if (m<is[i+1]){
                d=i+1;
            }
        }

    }

    
    

}
